<?

class tbl_type_abstract{
	private $owner;
	private $name;
	public function __construct($owner, $name){
		$this->owner = $owner;
		$this->name = $name;
	}
	public function value(){
		if(!isset($this->owner[$this->name])) throw new Exception("Невозможно получить значение поля '{$this->name}'");
		return $this->owner[$this->name];
	}
}
?>